Ext.define('MyBlog.store.Entry', {
    extend: 'Ext.data.Store',
    model: 'MyBlog.model.Entry',
	autoLoad: true,
    
	/*data: [
        {name: 'Ed',    email: 'ed@sencha.com'},
        {name: 'Tommy', email: 'tommy@sencha.com'}
    ]*/
	
	proxy: {
		type: 'ajax',
		url: 'data/newEntry.php',
		api: {
			read: 'data/newEntry.php',
			create: 'data/newEntry.php'
		},
		reader: {
			type: 'json',
			root: 'users',
			successProperty: 'success'
		}
	}
});